<?php
/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
*/
class userCore {
    function insert($name, $password, $msisdn) {
        global $config;

        require_once  ($config['base_dir'] . "/../lib/db.php");

        try{
        $db = new DB('localhost', 'chike', 'root', 'iloveu');
        }catch (Expection $e){
            print_r ($e);
            exit();
        }
        $db->__table = "chike_user";
        $db->insert(array(
                'user_name' => $name,
                'password' => md5($password),
                'msisdn' => $msisdn
        ));
    }
}
?>
